

package com.zmks.jkgj.xuexiao.controller.chaoji;




import java.util.Date;
import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


import com.zmks.jkgj.core.controller.ABaseController;
import com.zmks.jkgj.core.resp.Resp;
import com.zmks.jkgj.xuexiao.resp.WebResp;
import com.zmks.jkgj.xuexiao.service.ICrctObjSchoolService;
import com.zmks.jkgj.xuexiao.service.ICrctObjTeacherService;
import com.zmks.jkgj.xuexiao.vo.CrctObjSchoolVO;
import com.zmks.jkgj.xuexiao.vo.CrctObjStudentVO;
import com.zmks.jkgj.xuexiao.vo.CrctObjTeacherVO;

@Controller
@RequestMapping("/chaoji") 
public class Chaoji_CrctObjSchoolController extends ABaseController {
	
	@Autowired
	
	private ICrctObjSchoolService crctObjSchoolService;	
     @Autowired
	
	private ICrctObjTeacherService crctObjTeacherService;


	
	 //增加学校
	@RequestMapping("/save_CrctObjSchool")
	@ResponseBody
	public Resp save_CrctObjSchool(String  name,String address ,String contact,String web_site,String student_num,HttpServletRequest request) {
		WebResp 	webResp = new WebResp();
	   CrctObjSchoolVO crctObjSchoolVO=new  CrctObjSchoolVO();
	   crctObjSchoolVO.setName(name);
	   crctObjSchoolVO.setAddress(address);
	   crctObjSchoolVO.setContact(contact);
	   crctObjSchoolVO.setStudent_num(student_num);
       crctObjSchoolVO.setWeb_site(web_site);
	   crctObjSchoolVO.setCreate_date(new Date());
	   crctObjSchoolVO.setOid(crctObjSchoolVO.getId());
	   crctObjSchoolService.save(crctObjSchoolVO);
		return webResp;
	}
	
	
	
	
	
	

}
